package cn.tedu.store.service.impl;

import cn.tedu.store.entity.Switch;
import cn.tedu.store.mapper.AddressMapper;
import cn.tedu.store.service.Switchseivice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class SwitchServiceImpl implements Switchseivice {

    @Resource
    AddressMapper addressMapper;
    @Override
    public void add(String name, String status) {

//        addressMapper.addSwitch(name,status);
    }

    @Override
    public Switch get(String phone) {

        return   addressMapper.get(phone);
    }

    @Override
    public void update(String phone, String status) {
    addressMapper.update(phone,status);
    }

    @Override
    public void add1(String phone, String name) {
        addressMapper.addSwitch1(phone,name);
    }

    @Override
    public List<Switch> getAll() {
        return addressMapper.getAll();
    }
}
